#ifndef BASE_H
#define BASE_H

#include <QTime>
#include <QCloseEvent>
#include <QtGlobal>
#include<QString>
#include <QWidget>
#include <QObject>
#include<QTimer>
#include<QMessageBox>
class base : public QObject
{
    Q_OBJECT
public:
    static int MAX(int a,int b){if(a>b){return a;}else{return b;}};
    static int MIN(int a,int b){if(a<b){return a;}else{return b;}};

    int posx=0;
    int posy=0;
    int direction=1;
    int speed=0;
    virtual ~base();
};
#endif
